#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:do_reg.py
# author: 马国鑫
# datetime:2022/4/19 10:38
# software: PyCharm

"""
this is function  description 
"""

# import module your need

import re

# 参数1 匹配规则
# 参数2 数据来源
ret = re.match('mgx', 'mgx.cn')

# 获取匹配结果
info = ret.group()
print(info)

